#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int N = 0; int n = 1;
	scanf("%d", &N);
	for (int i = N-1;i>0; i--)
	{
		n = (n+1) * 2;
	}
	printf("%d", n);
	return 0;
}